<?php
$array1 = array(
    array()
);
$array2 = array(
    array(
        'sample_code' => "P1123186",
    )
);

//
$arr = ['name'=>99,'age'=>18,'class'=>'大班'];
$bol = in_array('1',$arr);
var_dump($bol);